home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
mapneeds
/
MapNeedUtils.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
12KB
|
329 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
var _loc2_ = f.h[§§constant(4)] = function()
{
}[§§constant(5)];
f.h[§§constant(4)] = function()
{
}[§§constant(6)] = function(obj)
{
if(_global[§§constant(7)][§§constant(8)] == obj)
{
_global[§§constant(7)][§§constant(9)]();
}
_global[§§constant(10)][§§constant(11)]();
_global[§§constant(12)][§§constant(13)](obj);
var _loc4_ = _global[§§constant(14)].h[§§constant(15)];
var _loc2_ = 0;
while(_loc2_ < _loc4_)
{
if(_global[§§constant(14)].h[_loc2_] == obj[§§constant(16)])
{
_global[§§constant(14)].h[§§constant(17)](_loc2_,1);
break;
}
_loc2_ = _loc2_ + 1;
}
obj[§§constant(18)][§§constant(19)]();
delete obj[§§constant(18)];
f.h[§§constant(4)][§§constant(20)](obj);
var _loc5_ = delete _global[§§constant(14)][§§constant(21) + obj[§§constant(16)]];
_global[§§constant(22)][§§constant(23)]();
_global[§§constant(24)][§§constant(25)]();
};
f.h[§§constant(4)] = function()
{
}[§§constant(26)] = function(obj)
{
var _loc6_ = obj[§§constant(27)][§§constant(15)];
var _loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc2_ = obj[§§constant(27)][_loc3_];
if(eval(§§constant(28))[§§constant(30)](eval(§§constant(28))[§§constant(29)]() * 1.4))
{
_loc2_[§§constant(31)] = _loc2_[§§constant(31)] != 0 ? 0 : 1;
}
var _loc5_ = _loc2_[§§constant(32)] != §§constant(33) ? §§constant(34) : §§constant(35);
_global[§§constant(14)][§§constant(48)][§§constant(49)](_global[_loc5_ + _loc2_[§§constant(31)] + §§constant(47)],new eval(§§constant(41))[§§constant(42)][§§constant(46)]((_loc2_[§§constant(45)] - 1) * 25,(_loc2_[§§constant(44)] - 1) * 25,25,25),new eval(§§constant(41))[§§constant(42)][§§constant(43)](obj[§§constant(39)] + _loc2_[§§constant(39)] - _global[§§constant(37)][§§constant(40)],obj[§§constant(36)] + _loc2_[§§constant(36)] - _global[§§constant(37)][§§constant(38)]),null,null,true);
_loc3_ = _loc3_ + 1;
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(50)] = function(obj, doubleClick)
{
if(_global[§§constant(51)][§§constant(52)])
{
return undefined;
}
var _loc4_ = undefined;
if(doubleClick)
{
if(_global[§§constant(51)][§§constant(53)] == §§constant(54))
{
var _loc3_ = _global[§§constant(14)][§§constant(55)];
if(_loc3_ instanceof f[§§constant(56)][§§constant(57)])
{
_loc4_ = true;
f[§§constant(56)][§§constant(58)][§§constant(59)](f[§§constant(56)][§§constant(57)](_loc3_),obj);
}
else if(_loc3_ instanceof f[§§constant(60)][§§constant(61)])
{
_loc4_ = true;
_loc3_[§§constant(62)](obj);
}
}
}
else
{
if(obj instanceof f.h[§§constant(63)] || obj instanceof f.h[§§constant(64)])
{
return undefined;
}
obj[§§constant(65)]();
f[§§constant(14)][§§constant(66)][§§constant(67)](obj);
obj[§§constant(68)]();
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(69)] = function(obj)
{
obj[§§constant(70)] = true;
_global[§§constant(51)][§§constant(71)] = obj;
var _loc3_ = 1;
while(_loc3_ <= 2)
{
var _loc2_ = obj[§§constant(72)][§§constant(73) + _loc3_];
_loc2_[§§constant(74)] = 100;
_loc2_[§§constant(75)][§§constant(76)](2);
_loc2_[§§constant(75)][§§constant(77)][§§constant(76)](2);
_loc3_ = _loc3_ + 1;
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(78)] = function(obj)
{
obj[§§constant(70)] = false;
if(_global[§§constant(51)][§§constant(71)] == obj)
{
_global[§§constant(51)][§§constant(71)] = undefined;
}
var _loc3_ = 1;
while(_loc3_ <= 2)
{
var _loc2_ = obj[§§constant(72)][§§constant(73) + _loc3_];
_loc2_[§§constant(74)] = 50;
_loc2_[§§constant(75)][§§constant(79)](1);
_loc2_[§§constant(75)][§§constant(77)][§§constant(79)](1);
_loc3_ = _loc3_ + 1;
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(80)] = function(obj)
{
var _loc4_ = f[§§constant(81)][§§constant(82)][§§constant(83)](obj[§§constant(39)],obj[§§constant(36)],_global[§§constant(37)][§§constant(39)],_global[§§constant(37)][§§constant(36)]);
if(_loc4_ < 500)
{
obj[§§constant(84)]();
obj[§§constant(72)][§§constant(85)][§§constant(86)] = function()
{
};
}
else if(obj[§§constant(72)])
{
f.h[§§constant(4)][§§constant(20)](obj);
return undefined;
}
if(obj[§§constant(87)])
{
var _loc5_ = 0;
if(_loc4_ < 500 && obj[§§constant(88)])
{
_loc5_ = 25 - 25 * _loc4_ / 500;
}
if(_loc5_ != _global[§§constant(22)][obj[§§constant(87)]][§§constant(89)]())
{
_global[§§constant(22)][§§constant(90)](obj[§§constant(87)],_loc5_,10);
}
}
var _loc6_ = obj[§§constant(72)][§§constant(85)][§§constant(93)](_root[§§constant(92)],_root[§§constant(91)],true);
if(_loc6_ && !_global[§§constant(51)][§§constant(52)])
{
if(!obj[§§constant(70)])
{
f.h[§§constant(4)][§§constant(69)](obj);
}
}
else if(obj[§§constant(70)])
{
f.h[§§constant(4)][§§constant(78)](obj);
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(20)] = function(obj)
{
obj[§§constant(72)][§§constant(94)]();
delete obj[§§constant(72)];
f.h[§§constant(4)][§§constant(78)](obj);
};
f.h[§§constant(4)] = function()
{
}[§§constant(95)] = function(obj)
{
var _loc2_ = 20;
var _loc3_ = new eval(§§constant(41))[§§constant(42)][§§constant(46)](obj[§§constant(39)] - obj[§§constant(97)] / 2 - _loc2_,obj[§§constant(36)] - obj[§§constant(96)] / 2 - _loc2_,obj[§§constant(97)] + _loc2_ * 2,obj[§§constant(96)] + _loc2_ * 2);
obj[§§constant(98)] = f[§§constant(81)][§§constant(42)][§§constant(100)][§§constant(101)](new eval(§§constant(41))[§§constant(42)][§§constant(43)](obj[§§constant(39)],obj[§§constant(36)]),_loc3_,obj[§§constant(99)]);
obj[§§constant(102)] = §§constant(103);
obj[§§constant(104)] = new f[§§constant(105)][§§constant(106)]();
obj[§§constant(104)][§§constant(107)](obj);
};
f.h[§§constant(4)] = function()
{
}[§§constant(108)] = function(mapNeed)
{
_global[§§constant(22)][§§constant(110)](§§constant(109));
var _loc9_ = f.h[§§constant(4)][§§constant(111)](mapNeed);
if(_loc9_)
{
if(_loc9_[§§constant(112)])
{
f[§§constant(56)][§§constant(58)][§§constant(113)](f[§§constant(56)][§§constant(57)](_loc9_));
}
_global[§§constant(114)][§§constant(115)](mapNeed,_loc9_);
return undefined;
}
var _loc5_ = true;
var _loc4_ = §§constant(116);
var _loc8_ = undefined;
if(mapNeed instanceof f.h[§§constant(63)])
{
_loc8_ = _global[§§constant(114)][§§constant(120)]([f[§§constant(56)][§§constant(119)],f[§§constant(56)][§§constant(118)],f[§§constant(56)][§§constant(117)]]);
}
else
{
_loc8_ = _global[§§constant(114)][§§constant(120)]([f[§§constant(56)][§§constant(119)],f[§§constant(56)][§§constant(118)]]);
}
if(_loc8_ == null)
{
_loc4_ = _global[§§constant(121)];
_loc5_ = false;
}
var _loc10_ = undefined;
if(mapNeed[§§constant(122)][§§constant(15)] > 0)
{
_loc10_ = _global[§§constant(114)][§§constant(123)](mapNeed[§§constant(122)][0]);
if(_loc10_ == null)
{
if(_loc8_ == null)
{
_loc4_ = _global[§§constant(124)];
}
else
{
_loc4_ = _global[§§constant(125)];
}
_loc5_ = false;
}
}
if(_loc5_)
{
if(_global[§§constant(114)][§§constant(126)])
{
_loc4_ = _global[§§constant(127)];
_loc5_ = false;
}
else
{
var _loc6_ = _global[§§constant(14)][§§constant(128)][§§constant(15)];
var _loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc2_ = _global[§§constant(14)][§§constant(21) + _global[§§constant(14)][§§constant(128)][_loc3_]];
if(_loc2_[§§constant(129)] == _global[§§constant(114)][§§constant(130)])
{
if(f[§§constant(81)][§§constant(82)][§§constant(83)](_loc2_[§§constant(39)],_loc2_[§§constant(36)],_global[§§constant(114)][§§constant(130)][§§constant(39)],_global[§§constant(114)][§§constant(130)][§§constant(36)]) < 150)
{
_loc4_ = _global[§§constant(127)];
_loc5_ = false;
}
}
_loc3_ = _loc3_ + 1;
}
}
}
if(_loc5_)
{
_global[§§constant(114)][§§constant(108)](mapNeed,_loc8_,_loc10_);
}
else
{
f[§§constant(14)][§§constant(66)][§§constant(132)](_loc4_,false,§§constant(131));
}
};
f.h[§§constant(4)] = function()
{
}[§§constant(111)] = function(mapNeed)
{
var _loc5_ = undefined;
var _loc6_ = _global[§§constant(14)][§§constant(128)][§§constant(15)];
var _loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc2_ = _global[§§constant(14)][§§constant(21) + _global[§§constant(14)][§§constant(128)][_loc3_]];
var _loc4_ = _loc2_[§§constant(133)][0];
if(!_loc2_[§§constant(134)])
{
if(!_loc2_[§§constant(135)])
{
if(_loc4_ != undefined)
{
if(_loc4_ instanceof mapNeed[§§constant(122)][0] != false)
{
_loc5_ = _loc2_;
break;
}
}
}
}
_loc3_ = _loc3_ + 1;
}
return _loc5_;
};
§§push(§§constant(136)(f.h[§§constant(4)][§§constant(5)],null,1));
}
§§pop();